#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : xuexiaohua
# @time    : 2025/9/5 16:08
# @function: the script is used to do something.
# @version :
from springbootProject.apis.base_api import BaseApi

class SubtractApi(BaseApi):
    def __init__(self):
        super().__init__()
        self.method = "GET"
        self.url = "/subtract?a={}&b={}"

    def add(self, a, b):
        req = {
            "method": self.method,
            "url": self.base_url + self.url.format(a, b)
        }
        return self.send_api(req)
